﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ObjectModel
{
	[Table(Name="users")]
    public class User : BaseEntity<User>
    {
		[Field(Name ="name")]
        public String Name { get; set; }

		[Field(Name = "tel")]
		public String Tel { get; set; }

		[Field(Name = "cel")]
		public String Cel { get; set; }

		[Field(Name = "personal_email")]
		public String PersonalMail { get; set; }

		[Field(Name = "business_email")]
		public String CorporateMail { get; set; }

		//[Field(Name = "street", Insertable=false)]
		//public Address Address { get; set; }

		[Field(Name = "street")]
		public String Street { get; set; }

		[Field(Name = "complement")]
		public String Complement { get; set; }

		[Field(Name = "cep")]
		public String CEP { get; set; }

		[Field(Name = "neighbourhood")]
		public String Neighbourhood { get; set; }

		[Field(Name = "city")]
		public String City { get; set; }

		[Field(Name = "state")]
		public String State { get; set; }

		[Field(Name = "fax")]
		public String Fax { get; set; }

		[Field(Name = "login")]
		public String Login { get; set; }

		[Field(Name = "password")]
		public String Password { get; set; }

		[Field(Name = "cpf")]
		public String CPF { get; set; }

		[Field(Name = "begin_date")]
		public DateTime BeginDate { get; set; }

		[Field(Name = "end_date")]
		public DateTime EndDate { get; set; }
    }
}
